/*
 * @Author: 卢景滔
 * @Date: 2021-12-21 10:11:50
 * @LastEditTime: 2021-12-21 10:55:54
 * @LastEditors: 卢景滔
 * @Description: 子线程
 */

// 接收主线程信息
self.addEventListener('message', (e) => {
  console.log('子线程收到主线程信息：', e.data)
  postMessage('I am fine.')
})
